package com.hope.study.rest.vo;

public class Test {

    public static void main(String[] args) {
        int [] check = new int[]{7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2};
        String idNum = "412728198911094255";
        int num = 0;
        for(int i=0;i<=16;i++){
           num += Integer.parseInt(idNum.substring(i, i+1))*check[i];
        }
        System.out.println(num%11);
    }
}
